/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package de.hwrberlin.remo.model.impl;

import de.hwrberlin.remo.model.AndRule;
import de.hwrberlin.remo.model.BooleanFact;
import de.hwrberlin.remo.model.ElementState;
import de.hwrberlin.remo.model.Fact;
import de.hwrberlin.remo.model.Implication;
import de.hwrberlin.remo.model.KnowledgeBase;
import de.hwrberlin.remo.model.KnowledgeBaseElement;
import de.hwrberlin.remo.model.LinkObject;
import de.hwrberlin.remo.model.LinksFromFacts;
import de.hwrberlin.remo.model.LinksFromRules;
import de.hwrberlin.remo.model.OrRule;
import de.hwrberlin.remo.model.RemoModelFactory;
import de.hwrberlin.remo.model.RemoModelPackage;
import de.hwrberlin.remo.model.RemoObject;
import de.hwrberlin.remo.model.Rule;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class RemoModelPackageImpl extends EPackageImpl implements RemoModelPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass remoObjectEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass knowledgeBaseEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass knowledgeBaseElementEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass factEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass booleanFactEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass ruleEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass linksFromRulesEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass andRuleEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass orRuleEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass implicationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass linksFromFactsEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass linkObjectEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum elementStateEEnum = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see de.hwrberlin.remo.model.RemoModelPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private RemoModelPackageImpl() {
		super(eNS_URI, RemoModelFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link RemoModelPackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static RemoModelPackage init() {
		if (isInited) return (RemoModelPackage)EPackage.Registry.INSTANCE.getEPackage(RemoModelPackage.eNS_URI);

		// Obtain or create and register package
		RemoModelPackageImpl theRemoModelPackage = (RemoModelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RemoModelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RemoModelPackageImpl());

		isInited = true;

		// Create package meta-data objects
		theRemoModelPackage.createPackageContents();

		// Initialize created meta-data
		theRemoModelPackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theRemoModelPackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(RemoModelPackage.eNS_URI, theRemoModelPackage);
		return theRemoModelPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getRemoObject() {
		return remoObjectEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getRemoObject_Name() {
		return (EAttribute)remoObjectEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getRemoObject_Description() {
		return (EAttribute)remoObjectEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getKnowledgeBase() {
		return knowledgeBaseEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getKnowledgeBase_OwnedElements() {
		return (EReference)knowledgeBaseEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getKnowledgeBase_NextID() {
		return (EAttribute)knowledgeBaseEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getKnowledgeBaseElement() {
		return knowledgeBaseElementEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getKnowledgeBaseElement_Relatedlinkedrules() {
		return (EReference)knowledgeBaseElementEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getKnowledgeBaseElement_Id() {
		return (EAttribute)knowledgeBaseElementEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getKnowledgeBaseElement_Relatedlinkedfacts() {
		return (EReference)knowledgeBaseElementEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getKnowledgeBaseElement_State() {
		return (EAttribute)knowledgeBaseElementEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getFact() {
		return factEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getFact_Linksfacts() {
		return (EReference)factEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getFact_Validated() {
		return (EAttribute)factEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getBooleanFact() {
		return booleanFactEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getRule() {
		return ruleEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getRule_Linksrules() {
		return (EReference)ruleEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getRule_Validated() {
		return (EAttribute)ruleEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getLinksFromRules() {
		return linksFromRulesEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getLinksFromRules_Element() {
		return (EReference)linksFromRulesEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getLinksFromRules_Rule() {
		return (EReference)linksFromRulesEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getAndRule() {
		return andRuleEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getOrRule() {
		return orRuleEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getImplication() {
		return implicationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getLinksFromFacts() {
		return linksFromFactsEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getLinksFromFacts_Element() {
		return (EReference)linksFromFactsEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getLinksFromFacts_Fact() {
		return (EReference)linksFromFactsEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getLinkObject() {
		return linkObjectEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getLinkObject_Linkname() {
		return (EAttribute)linkObjectEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getLinkObject_Linkstate() {
		return (EAttribute)linkObjectEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getElementState() {
		return elementStateEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public RemoModelFactory getRemoModelFactory() {
		return (RemoModelFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		remoObjectEClass = createEClass(REMO_OBJECT);
		createEAttribute(remoObjectEClass, REMO_OBJECT__NAME);
		createEAttribute(remoObjectEClass, REMO_OBJECT__DESCRIPTION);

		knowledgeBaseEClass = createEClass(KNOWLEDGE_BASE);
		createEReference(knowledgeBaseEClass, KNOWLEDGE_BASE__OWNED_ELEMENTS);
		createEAttribute(knowledgeBaseEClass, KNOWLEDGE_BASE__NEXT_ID);

		knowledgeBaseElementEClass = createEClass(KNOWLEDGE_BASE_ELEMENT);
		createEReference(knowledgeBaseElementEClass, KNOWLEDGE_BASE_ELEMENT__RELATEDLINKEDRULES);
		createEAttribute(knowledgeBaseElementEClass, KNOWLEDGE_BASE_ELEMENT__ID);
		createEReference(knowledgeBaseElementEClass, KNOWLEDGE_BASE_ELEMENT__RELATEDLINKEDFACTS);
		createEAttribute(knowledgeBaseElementEClass, KNOWLEDGE_BASE_ELEMENT__STATE);

		factEClass = createEClass(FACT);
		createEReference(factEClass, FACT__LINKSFACTS);
		createEAttribute(factEClass, FACT__VALIDATED);

		booleanFactEClass = createEClass(BOOLEAN_FACT);

		ruleEClass = createEClass(RULE);
		createEReference(ruleEClass, RULE__LINKSRULES);
		createEAttribute(ruleEClass, RULE__VALIDATED);

		linksFromRulesEClass = createEClass(LINKS_FROM_RULES);
		createEReference(linksFromRulesEClass, LINKS_FROM_RULES__ELEMENT);
		createEReference(linksFromRulesEClass, LINKS_FROM_RULES__RULE);

		andRuleEClass = createEClass(AND_RULE);

		orRuleEClass = createEClass(OR_RULE);

		implicationEClass = createEClass(IMPLICATION);

		linksFromFactsEClass = createEClass(LINKS_FROM_FACTS);
		createEReference(linksFromFactsEClass, LINKS_FROM_FACTS__ELEMENT);
		createEReference(linksFromFactsEClass, LINKS_FROM_FACTS__FACT);

		linkObjectEClass = createEClass(LINK_OBJECT);
		createEAttribute(linkObjectEClass, LINK_OBJECT__LINKNAME);
		createEAttribute(linkObjectEClass, LINK_OBJECT__LINKSTATE);

		// Create enums
		elementStateEEnum = createEEnum(ELEMENT_STATE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		knowledgeBaseEClass.getESuperTypes().add(this.getRemoObject());
		knowledgeBaseElementEClass.getESuperTypes().add(this.getRemoObject());
		factEClass.getESuperTypes().add(this.getKnowledgeBaseElement());
		booleanFactEClass.getESuperTypes().add(this.getFact());
		ruleEClass.getESuperTypes().add(this.getKnowledgeBaseElement());
		linksFromRulesEClass.getESuperTypes().add(this.getLinkObject());
		andRuleEClass.getESuperTypes().add(this.getRule());
		orRuleEClass.getESuperTypes().add(this.getRule());
		implicationEClass.getESuperTypes().add(this.getRule());
		linksFromFactsEClass.getESuperTypes().add(this.getLinkObject());

		// Initialize classes and features; add operations and parameters
		initEClass(remoObjectEClass, RemoObject.class, "RemoObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getRemoObject_Name(), ecorePackage.getEString(), "name", "", 0, 1, RemoObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getRemoObject_Description(), ecorePackage.getEString(), "description", null, 0, 1, RemoObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(knowledgeBaseEClass, KnowledgeBase.class, "KnowledgeBase", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getKnowledgeBase_OwnedElements(), this.getKnowledgeBaseElement(), null, "ownedElements", null, 0, -1, KnowledgeBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getKnowledgeBase_NextID(), ecorePackage.getEInt(), "nextID", null, 0, 1, KnowledgeBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		addEOperation(knowledgeBaseEClass, this.getFact(), "getFacts", 0, -1, IS_UNIQUE, IS_ORDERED);

		addEOperation(knowledgeBaseEClass, this.getRule(), "getRules", 0, -1, IS_UNIQUE, IS_ORDERED);

		initEClass(knowledgeBaseElementEClass, KnowledgeBaseElement.class, "KnowledgeBaseElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getKnowledgeBaseElement_Relatedlinkedrules(), this.getLinksFromRules(), this.getLinksFromRules_Element(), "relatedlinkedrules", null, 0, -1, KnowledgeBaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getKnowledgeBaseElement_Id(), ecorePackage.getEInt(), "id", null, 0, 1, KnowledgeBaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getKnowledgeBaseElement_Relatedlinkedfacts(), this.getLinksFromFacts(), this.getLinksFromFacts_Element(), "relatedlinkedfacts", null, 0, -1, KnowledgeBaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getKnowledgeBaseElement_State(), this.getElementState(), "state", null, 0, 1, KnowledgeBaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(factEClass, Fact.class, "Fact", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getFact_Linksfacts(), this.getLinksFromFacts(), this.getLinksFromFacts_Fact(), "linksfacts", null, 0, -1, Fact.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getFact_Validated(), ecorePackage.getEBoolean(), "validated", null, 0, 1, Fact.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		addEOperation(factEClass, this.getElementState(), "checkRule", 0, 1, IS_UNIQUE, IS_ORDERED);

		initEClass(booleanFactEClass, BooleanFact.class, "BooleanFact", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(ruleEClass, Rule.class, "Rule", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getRule_Linksrules(), this.getLinksFromRules(), this.getLinksFromRules_Rule(), "linksrules", null, 0, -1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getRule_Validated(), ecorePackage.getEBoolean(), "validated", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		addEOperation(ruleEClass, this.getElementState(), "checkRule", 0, 1, IS_UNIQUE, IS_ORDERED);

		initEClass(linksFromRulesEClass, LinksFromRules.class, "LinksFromRules", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getLinksFromRules_Element(), this.getKnowledgeBaseElement(), this.getKnowledgeBaseElement_Relatedlinkedrules(), "element", null, 0, 1, LinksFromRules.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getLinksFromRules_Rule(), this.getRule(), this.getRule_Linksrules(), "rule", null, 0, 1, LinksFromRules.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(andRuleEClass, AndRule.class, "AndRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(orRuleEClass, OrRule.class, "OrRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(implicationEClass, Implication.class, "Implication", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(linksFromFactsEClass, LinksFromFacts.class, "LinksFromFacts", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getLinksFromFacts_Element(), this.getKnowledgeBaseElement(), this.getKnowledgeBaseElement_Relatedlinkedfacts(), "element", null, 0, 1, LinksFromFacts.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getLinksFromFacts_Fact(), this.getFact(), this.getFact_Linksfacts(), "fact", null, 0, 1, LinksFromFacts.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(linkObjectEClass, LinkObject.class, "LinkObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getLinkObject_Linkname(), ecorePackage.getEString(), "linkname", "", 0, 1, LinkObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getLinkObject_Linkstate(), this.getElementState(), "linkstate", "FALSE", 0, 1, LinkObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		// Initialize enums and add enum literals
		initEEnum(elementStateEEnum, ElementState.class, "ElementState");
		addEEnumLiteral(elementStateEEnum, ElementState.TRUE);
		addEEnumLiteral(elementStateEEnum, ElementState.FALSE);
		addEEnumLiteral(elementStateEEnum, ElementState.UNKNOWN);

		// Create resource
		createResource(eNS_URI);
	}

} //RemoModelPackageImpl
